from celery_tasks.main import app
from libs.yuntongxun.sms import CCP

#使用app添加任务
@app.task(name="send_sms")
def send_sms(mobile,sms_code):
    CCP().send_template_sms(mobile, [sms_code, 5], 1)
